<?php $form=$this->beginWidget('CActiveForm', array(
	'id' => 'tyreSelectionForm',
	'enableAjaxValidation'=>true,
	'action'=>$action,
)); ?>

	<?php echo $form->dropDownList($tyreSelection,'producers', CHtml::listData(TyreProducers::model()->alphabetically()->with('tyres.sizes:inSight')->findAll(), 'alias', 'title'), array( 'empty'=>'Производитель:')); ?>
	<?php echo $form->error($tyreSelection,'producers'); ?>

	<?php echo $form->dropDownList($tyreSelection,'width', CHtml::listData(TyreSizes::model()->inSight()->findAll(array('group'=>'width')), 'width', 'width'), array( 'empty'=>'Ширина:' )); ?>
	<?php echo $form->error($tyreSelection,'width'); ?>
	
	<?php echo $form->dropDownList($tyreSelection,'height', CHtml::listData(TyreSizes::model()->inSight()->findAll(array('group'=>'height')), 'height', 'height'), array( 'empty'=>'Профиль:' )); ?>
	<?php echo $form->error($tyreSelection,'height'); ?>

	<?php echo $form->dropDownList($tyreSelection,'diameter', CHtml::listData(TyreSizes::model()->inSight()->findAll(array('group'=>'diameter')), 'diameter', 'diameter'), array( 'empty'=>'Диаметр:' )); ?>
	<?php echo $form->error($tyreSelection,'diameter'); ?>

	<?php echo $form->dropDownList($tyreSelection,'season', L::ruitems('tyreSeason'), array( 'empty'=>'Сезонность:' )); ?>
	<?php echo $form->error($tyreSelection,'season'); ?>
	
	<button type="submit" class='submitbtm'>
		<img src='/themes/2011/images/selectbtn.png' alt="Подобрать">
	</button>

<?php $this->endWidget(); ?>
